package com.rbsif.grading.model;

import java.io.Serializable;
import java.util.List;

public class Client implements Serializable{

	private String name;
	private Financial financialInfo;
	private QualityOfManagement qualityOfManagementInfo;
	private ClientRiskInfo clientRiskInfo;
	
	private List<Debtor> debtors;
	
	private int clientType ;//  Recourse, non Recourse
	private int riskScore;
	
	public int clientGrade;
	private int internalGrade;
	
	
	
	public int getInternalGrade() {
		return internalGrade;
	}

	public void setInternalGrade(int internalGrade) {
		this.internalGrade = internalGrade;
	}

	public void addToClientGrade(int value)
	{
		clientGrade += value;
	}
	
	public void substractFromClientGrade(int value)
	{
		clientGrade =- value;
	}
	
	public int getClientGrade() {
		return clientGrade;
	}

	public void setClientGrade(int clientGrade) {
		this.clientGrade = clientGrade;
	}

	public int getRiskScore() {
		return riskScore;
	}

	public void setRiskScore(int riskScore) {
		this.riskScore = riskScore;
	}

	public boolean hasFinancialInfo()
	{
		return financialInfo != null; 
	}
	
	public boolean hasQualityOfManagement()
	{
		return qualityOfManagementInfo != null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Financial getFinancialInfo() {
		return financialInfo;
	}

	public void setFinancialInfo(Financial financialInfo) {
		this.financialInfo = financialInfo;
	}

	public QualityOfManagement getQualityOfManagementInfo() {
		return qualityOfManagementInfo;
	}

	public void setQualityOfManagementInfo(
			QualityOfManagement qualityOfManagementInfo) {
		this.qualityOfManagementInfo = qualityOfManagementInfo;
	}

	public ClientRiskInfo getClientRiskInfo() {
		return clientRiskInfo;
	}

	public void setClientRiskInfo(ClientRiskInfo clientRiskInfo) {
		this.clientRiskInfo = clientRiskInfo;
	}

	public List<Debtor> getDebtors() {
		return debtors;
	}

	public void setDebtors(List<Debtor> debtors) {
		this.debtors = debtors;
	}

	public int getClientType() {
		return clientType;
	}

	public void setClientType(int clientType) {
		this.clientType = clientType;
	}
	
	
	
}
